<!doctype html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=1280, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="renderer" content="webkit|ie-stand|ie-comp">
  <title>在线进销存</title>
  <link href="/public/static/admin/ind/release/css/common.css?ver=20150522" rel="stylesheet" type="text/css">
  <link href="/public/static/admin/ind/release/css/blue/ui.min.css?ver=20150522" rel="stylesheet">
  <script src="/public/static/admin/ind/release/js/common/libs/jquery/jquery-1.10.2.min.js"></script>
  <!-- <script src="/public/static/admin/ind/release/js/common/libs/json3.min.js"></script> -->
  <script src="/public/static/admin/ind/release/js/common/common.js?ver=20150522"></script>
  <!--<script src="/public/static/admin/ind/release/js/common/grid.js?ver=20150522"></script>
<script src="/public/static/admin/ind/release/js/common/plugins.js?ver=20150522"></script>
<script src="/public/static/admin/ind/release/js/common/plugins/jquery.dialog.js?self=true&ver=20150522"></script> -->

  <style>
    .ui-jqgrid td input {
      width: 100%;
      border: 1px solid #AAA;
      height: 18px;
      line-height: 18px;
      margin: -1px -5px;
      padding: 6px 4px;
      box-sizing: content-box !important;
      outline: -webkit-focus-ring-color auto 5px;
    }
  </style>


  <script type="text/javascript">
    var DOMAIN = document.domain;
    var WDURL = "/index.php";
    var SCHEME = "blue";
    try {
      document.domain = '/';
    } catch (e) {

    }
    //ctrl+F5 增加版本号来清空iframe的缓存的
    $(document).keydown(function (event) {
      /* Act on the event */
      if (event.keyCode === 116 && event.ctrlKey) {
        var defaultPage = Public.getDefaultPage();
        var href = defaultPage.location.href.split('?')[0] + '?';
        var params = Public.urlParam();
        params['version'] = Date.parse((new Date()));
        for (i in params) {
          if (i && typeof i != 'function') {
            href += i + '=' + params[i] + '&';
          }
        }
        defaultPage.location.href = href;
        event.preventDefault();
      }
    });
    //删除start
    //  function del(url){
    //     $.dialog({
    //         width: 280,
    //         title: '系统提示',
    //         icon: '/public/static/store/images/confirm.gif',
    //         fixed: true,
    //         lock: true,
    //         resize: false,
    //         cancelVal: '取消',
    //         ok: true,
    //         cancel: "取消",
    //         content: '确定删除么？',
    //         ok: function() {
    //             var ids= $("#grid").jqGrid('getGridParam','selarrrow');
    //             Public.ajaxPost(url, {
    //                 ids: ids
    //             }, function(res) {
    //                  if(res.status==1){
    //                     parent.Public.tips({
    //                         //content: "成功删除"+res.+"条数据！";
    //                         content:res.msg
    //                     });
    //                     window.location.reload();
    //                  } else{
    //                     parent.Public.tips({
    //                         type :1,
    //                         content: res.msg
    //                     });
    //                  } 
    //             })
    //         },
    //     });
    // }
    //删除end
    //添加start
    // function add(title,url,width=0.68,height=0.85){
    //               if(width>1){

    //               }
    //               var windowWidth = $(window).width();

    //               var  w =$(window).width();
    //               var  h =$(window).height();
    //               if(windowWidth < 750){
    //                   w = ($(window).width() * 0.9)+'px';
    //                   h = ($(window).height() * 0.9)+'px';
    //               }else{
    //                   w = ($(window).width() * width)+'px';
    //                   h = ($(window).height() * height)+'px';
    //               }
    //               if(width>1){
    //                   w = width+'px';
    //                   h = height+'px'; 
    //               }
    //               $.dialog({
    //                   title : title,
    //                   content : 'url:'+url,
    //                   data: {oper: 'add', callback: function(data, oper, dialogWin){
    //                       dialogWin && dialogWin.api.close();
    //                   }},
    //                   width : w,
    //                   height :h,
    //                   max : false,
    //                   min : false,
    //                   cache : false,
    //                   lock: true,

    //               });
    //           }
    //添加end
    window.onload = function () {
      if (window.parent.window != window) {
        window.top.location = "/admin/index/index.html";
      }
    }
  </script>